<?php
session_start();
require_once '../header.php';
function __autoload($className)
	{
    	require_once('../class/' . $className . '.class.php');
	}
session::need_manage();	
$UserId=$_GET["userid"];
$Active=database::Update('userinfo',array(
'userid' => $UserId
),array(
'isactive' => 1
));
if($Active==1)
{
	echo "Account has been actived";
}else {
	echo "Can not Active";
}
?>